package controller;

import android.app.Activity;
import android.content.Context;
import android.telephony.TelephonyManager;
import android.util.Log;
import networking.TCPclient;

public class CheckUserData extends Activity{

	public boolean isMember(String phone) {
		
		Log.i("CheckUserData_isMember(): ", phone);
		TCPclient tp = new TCPclient("isMember:" + phone);
		tp.run();
		
		if(tp.isMember())
			return true;
		else
			return false;
	}
	
	// Get My Phone Number Sample
/*	public String getMyPhoneNumber(){
		TelephonyManager mTelephonyMgr;
		mTelephonyMgr = (TelephonyManager)
	        getSystemService(Context.TELEPHONY_SERVICE); 
		
		Log.i("Phone01", mTelephonyMgr.getLine1Number());
		return mTelephonyMgr.getLine1Number();
	}
	
	public String getMy10DigitPhoneNumber(){
	        String s = getMyPhoneNumber();
	        Log.i("Phone02", s.substring(2));
	        return s.substring(2);
	}*/
}
